package interFace;

public interface MyService extends BasicService, MiddleService{
    void execute();
    default void test() {
        System.out.println("test");
    }
    public static void test2() {
        System.out.println("test2");
    }

    public static void main(String[] args) {
        MyService m = new MyService() {
            //匿名内部类
            @Override
            public void execute() {
                System.out.println("execute");
            }
        };
        MyService.test2();
    }
}
